package com.lucy.flow.module.transition;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 * 流程流转记录
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "flow_transition")
@ApiModel(value = "流程流转",description = "")
public class FlowTransition extends BaseEntity implements Serializable {
    @ApiModelProperty("流程名称")
    @Column(name = "flow_name")
    String flowName;

    @ApiModelProperty("流程定义ID")
    @Column(name = "flow_define_id")
    String flowDefineId;

    @ApiModelProperty("流程定义编码")
    @Column(name = "flow_define_code")
    String flowDefineCode;

    @ApiModelProperty("流程实例ID")
    @Column(name = "flow_work_id")
    String flowWorkId;

    // 源节点
    @ApiModelProperty("源节点ID")
    @Column(name = "source_node_id")
    String sourceNodeId;

    @ApiModelProperty("源节点名称")
    @Column(name = "source_node_name")
    String sourceNodeName;

    @ApiModelProperty("源节点类型")
    @Column(name = "source_node_type")
    String sourceNodeType;

    // 目标节点
    @ApiModelProperty("目标节点ID")
    @Column(name = "target_node_id")
    String targetNodeId;

    @ApiModelProperty("目标节点名称")
    @Column(name = "target_node_name")
    String targetNodeName;

    @ApiModelProperty("目标节点类型")
    @Column(name = "target_node_type")
    String targetNodeType;
}
